.btn-light.dashboard-toggle-btn {
    background-color: #f39c12 !important;
    border: 1px solid #f39c12 !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.08) !important;
    border-radius: 6px !important;
    transition: all 0.2s;
}
.btn-light.dashboard-toggle-btn:hover {
    background-color: #d35400 !important;
    border-color: #d35400 !important;
    color: #fff !important;
}
/* 新增橙色按钮样式，仅用于普通按钮 */
.btn-orange {
    background-color: #f39c12 !important;
    border: 1px solid #f39c12 !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.08) !important;
    border-radius: 6px !important;
    transition: all 0.2s;
}
.btn-orange:hover {
    background-color: #d35400 !important;
    border-color: #d35400 !important;
    color: #fff !important;
}
.collapsed { display: none !important; }
/* 统一所有卡片的垂直间距 */
.dashboard-grid {
    row-gap: 1.5rem !important;
}

/* 过滤器样式优化 */
#filterPanel {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

#filterPanel .card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    border-bottom: 1px solid #dee2e6;
    padding: 12px 20px;
}

#filterPanel .card-header h6 {
    margin: 0;
    font-weight: 600;
    color: #495057;
    font-size: 1rem;
}

#filterPanel .card-body {
    padding: 20px;
    background: #fafbfc;
}

/* 统一表单控件样式 */
#filterPanel .form-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.875rem;
    margin-bottom: 6px;
    display: block;
}

#filterPanel .form-select,
#filterPanel .form-control {
    border: 1px solid #ced4da;
    border-radius: 8px;
    transition: all 0.15s ease-in-out;
    font-size: 0.875rem;
    height: 38px;
}

#filterPanel .form-select:focus,
#filterPanel .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    background-color: #fff;
}

/* 多选下拉框特殊样式 */
#filterPanel .form-select[multiple] {
    min-height: 80px !important;
    height: auto;
}

#filterPanel .form-select[multiple] option {
    padding: 6px 12px;
    border-radius: 4px;
    margin: 2px;
}

#filterPanel .form-select[multiple] option:checked {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

/* 输入组样式 */
#filterPanel .input-group {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

#filterPanel .input-group-text {
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    border: 1px solid #ced4da;
    font-weight: 500;
    color: #6c757d;
}

/* 按钮组样式优化 */
#filterPanel .btn-group {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

#filterPanel .btn {
    border-radius: 0;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 8px 12px;
    transition: all 0.15s ease-in-out;
    border: none;
}

#filterPanel .btn:first-child {
    border-radius: 8px 0 0 8px;
}

#filterPanel .btn:last-child {
    border-radius: 0 8px 8px 0;
}

#filterPanel .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

#filterPanel .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

#filterPanel .btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

#filterPanel .btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108,117,125,0.3);
}

#filterPanel .btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

#filterPanel .btn-success:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40,167,69,0.3);
}

#filterPanel .btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

#filterPanel .btn-info:hover {
    background: linear-gradient(135deg, #138496, #007bff);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(23,162,184,0.3);
}

#filterPanel .btn-outline-secondary {
    border: 1px solid #6c757d;
    color: #6c757d;
    background: transparent;
}

#filterPanel .btn-outline-secondary:hover {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108,117,125,0.3);
}

/* 行间距优化 */
#filterPanel .row {
    margin-bottom: 8px;
}

#filterPanel .row:last-child {
    margin-bottom: 0;
}

/* 过滤器管理区域样式 */
#filterPanel .border-top {
    border-color: #dee2e6 !important;
    border-width: 2px !important;
}

#filterPanel .fw-bold {
    color: #495057;
    font-size: 0.95rem;
}

/* 图标样式 */
#filterPanel .btn i {
    margin-right: 4px;
    font-size: 0.8rem;
}

/* 响应式优化 */
@media (max-width: 768px) {
    #filterPanel .card-body {
        padding: 15px;
    }
    
    #filterPanel .col-md-3,
    #filterPanel .col-md-4,
    #filterPanel .col-md-8 {
        margin-bottom: 1rem;
    }
    
    #filterPanel .btn-group {
        width: 100%;
        flex-direction: column;
    }
    
    #filterPanel .btn {
        border-radius: 6px !important;
        margin-bottom: 0.5rem;
    }
    
    #filterPanel .btn:last-child {
        margin-bottom: 0;
    }
    
    #filterPanel .input-group {
        flex-direction: column;
    }
    
    #filterPanel .input-group .form-control {
        margin-bottom: 0.5rem;
        border-radius: 6px;
    }
    
    #filterPanel .input-group-text {
        display: none;
    }
}

/* 过滤器按钮样式 */
#ew_toggleFilter {
    background: linear-gradient(135deg, #6f42c1, #5a2d91);
    border: none;
    color: white;
    transition: all 0.15s ease-in-out;
}

#ew_toggleFilter:hover {
    background: linear-gradient(135deg, #5a2d91, #4e2a84);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 过滤状态提示样式 */
#filterStatus {
    background: linear-gradient(135deg, #d1ecf1, #b8daff);
    border: 1px solid #bee5eb;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.875rem;
}

#filterStatus .btn-outline-info {
    border-color: #17a2b8;
    color: #17a2b8;
    font-size: 0.75rem;
    padding: 2px 8px;
}

#filterStatus .btn-outline-info:hover {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

/* 过滤器管理样式 */
#filterNameInput {
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#filterNameInput:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#saveFilter {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: white;
    transition: all 0.15s ease-in-out;
}

#saveFilter:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#savedFiltersDropdown {
    background: linear-gradient(135deg, #17a2b8, #138496);
    border: none;
    color: white;
    transition: all 0.15s ease-in-out;
}

#savedFiltersDropdown:hover {
    background: linear-gradient(135deg, #138496, #007bff);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#manageFilters {
    border: 1px solid #6c757d;
    color: #6c757d;
    transition: all 0.15s ease-in-out;
}

#manageFilters:hover {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 过滤器管理模态框样式 */
#filterManageModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#filterManageModal .modal-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0;
}

#filterManageModal .modal-title {
    font-weight: 600;
    color: #495057;
}

#savedFiltersManage .card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.15s ease-in-out;
}

#savedFiltersManage .card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.15);
    transform: translateY(-2px);
}

#savedFiltersManage .card h6 {
    color: #495057;
    font-weight: 600;
}

#savedFiltersManage .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
}

#savedFiltersManage .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
}

#savedFiltersManage .btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
}

#savedFiltersManage .btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
}

/* 下拉菜单样式 */
.dropdown-menu {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 8px 16px;
    transition: all 0.15s ease-in-out;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #495057;
}

.dropdown-item i {
    color: #6c757d;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #filterPanel .col-md-9 .d-flex {
        flex-direction: column;
    }
    
    #filterPanel .col-md-9 .d-flex > div,
    #filterPanel .col-md-9 .d-flex > button {
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    #filterManageModal .modal-dialog {
        margin: 1rem;
    }
    
    #savedFiltersManage .d-flex {
        flex-direction: column;
    }
    
    #savedFiltersManage .btn {
        margin: 0.25rem 0;
        width: 100%;
    }
}
